package com.bdqn.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Hello控制器，接收用户请求并处理
 *
 * @author LILIBO
 * @since 2024/7/25
 */
public class HelloController extends AbstractController {

    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
        System.out.println("SpringMVC运行成功，进入了HelloController！");
        return new ModelAndView("world"); // /WEB-INF/jsp/world.jsp
    }

}
